Skip to content

Fix bswap on *BSD #315

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2018
Merged

Fix bswap on *BSD #315

merged 1 commit into from
Jun 11, 2018

Conversation

elprans
Copy link
Member

@elprans elprans commented Jun 11, 2018

#if FOO == BAR is true if neither BAR, nor FOO are defined, and on
BSDs machine endianness is declared as _BYTE_ORDER, not
__BYTE_ORDER, so we would compile a big-endian variant on
little-endian machines.

Fixes #313.

`#if FOO == BAR` is true if neither BAR, nor FOO are defined, and on
BSDs machine endianness is declared as `_BYTE_ORDER`, not
`__BYTE_ORDER`, so we would compile a big-endian variant on
little-endian machines.

Fixes #313.
@elprans elprans merged commit 8c83add into master Jun 11, 2018
@elprans elprans deleted the bswap branch June 11, 2018 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant